{"version":3,"file":"script.min.js","sources":["script.js"],"names":["BX","InterfaceGridFilter","this","_defaultItemId","_id","_settings","_itemInfos","_fieldInfos","_visibleFieldCount","_items","_fields","_addFieldOpener","_settingsOpener","_ignoreFieldVisibilityChange","_isApplied","_currentItemId","_activeItemId","_saveAsDlg","_enableProvider","_fieldProvider","_isFolded","_presetsDeleted","_saveVisibleFieldsTimeoutId","_closeOpen","prototype","initialize","id","settings","type","isNotEmptyString","ParamBag","create","getParam","currentValues","isArray","isActive","InterfaceGridFilterItem","filter","info","name","fields","filter_rows","itemId","hasOwnProperty","isDeleletedPreset","fieldId","f","InterfaceGridFilterField","isVisible","bind","getAddFieldButton","delegate","_handleAddFieldButtonClick","getSettingsButton","_handleSettingsButtonClick","getApplyButton","_handleApplyButtonClick","getCancelButton","_handleCancelButtonClick","getAddFilterButton","_handleSaveAsMenuItemClick","InterfaceGridFilterCloseOpen","switchBtn","getSwitchViewButton","title","getMessage","_handleSwitchViewButtonClick","InterfaceFilterFieldInfoProvider","items","getGridId","_initializeFieldControllers","addCustomEvent","window","_onFieldInfoProviderCreated","fieldProvider","getId","initializeController","isApplied","isFolded","getCurrentItemId","getFormName","getForm","document","forms","getCurrentTime","getServiceUrl","getContainerId","getItemContainerId","toString","getFieldContainerId","getFieldDelimiterContainerId","getVisibleFieldCount","getVisibleFieldIds","ary","push","getFieldInfo","infos","getFieldInfos","i","length","saveVisibleFields","clearTimeout","self","setTimeout","_doSaveVisibleFields","ajax","get","GRID_ID","action","filter_id","rows","join","saveActiveItem","callback","activeItem","post","getName","getFieldParams","deleteActiveItem","test","d","userOptions","delay","save","toLowerCase","requireFieldVisibilityChange","field","handleFieldVisibilityChange","_adjustStyle","_showDeleteButtons","requireItemActivityChange","item","handleItemActivityChange","_setActiveItem","handleSaveAsDialogClose","dialog","getButtonId","dlgValues","getValues","Math","random","substring","itemInfo","setActive","params","getParams","setFieldParams","setParams","setVisibleFieldIds","wrapper","_getWrapper","isCurrent","addClass","removeClass","visibleFieldIds","setVisible","apply","applyActive","prevCurrentItemId","handleCurrentItemChange","findChild","tag","property","value","submit","clear","container","bottomSeparator","class","content","style","display","setFieldsVisible","visible","options","skipTop","parseInt","setFolded","folded","toggle","mainWrapperBlock","height","handleFilterFoldingChange","show","showDeleteButton","e","menuItems","text","onchange","getToggleHandler","checked","onclick","_handleShowAllButtonClick","allowToggle","separatorBefore","_handleHideAllButtonClick","btn","btnPos","pos","InterfaceGridFilterCheckListMenu","anchor","offsetTop","round","offsetLeft","width","angle","position","offset","open","_handleSaveMenuItemClick","_handleDeleteMenuItemClick","toUpperCase","closeOnClick","getItemsByTag","setChecked","InterfaceGridFilterSaveAsDialog","openDialog","clearLayout","isEmptyObject","obj","undefined","Object","key","call","messages","_filter","_container","_isActive","_info","_fieldParams","_visibleFieldIds","isString","split","convertParamToFieldId","containerId","layout","_onClick","getInfo","active","fieldIds","props","attrs","insertBefore","remove","_delimiterContainer","_isVisible","_deleteButton","_controller","_handleDeleteButtonClick","getType","InterfaceGridFilterDate","formName","currentTime","_handleVisibilityChange","controller","setContainerId","InterfaceGridFilterUser","InterfaceGridFilterWidgetPeriod","_handleToggleButtonClick","elements","findChildren","v","el","disabled","tryGetParams","substr","j","selected","trySetParams","changed","elementChanged","k","option","sel","isFunction","ex","handleParamsChange","paramName","replace","intervalSelect","_onIntervalChange","_onDataFromClick","_onDataToClick","_openCalendar","calendar","node","form","bTime","bHideTime","_displayNode","search","showFrom","showTo","showHellip","showDays","paramInfo","data","_setElementByParam","elementId","element","isElementNode","_editor","_editorId","_elementId","_editorChangeListener","onEditorChange","CrmWidgetConfigPeriodEditor","setEditor","onEditorCreate","removeChangeListener","config","internalizeConfig","setPeriod","isNumber","setYear","setQuarter","setMonth","addChangeListener","getValue","editor","externalizeConfig","period","getPeriod","year","getYear","quarter","getQuarter","month","getMonth","str","Date","curYear","getFullYear","curMonth","curQuarter","result","CrmWidgetFilterPeriod","sender","_dlg","_buttonId","_nameInput","PopupWindow","autoHide","draggable","bindOptions","forceBindPosition","closeByEsc","closeIcon","titleBar","events","onPopupClose","_handleDialogClose","_prepareContent","buttons","_prepareButtons","table","margin","row","insertRow","cell","insertCell","align","innerHTML","maxlength","size","appendChild","PopupWindowButton","className","click","_handleSaveButtonClick","PopupWindowButtonLink","close","destroy","_allowToggle","_menuId","_menu","getSetting","_closeOnClick","InterfaceGridFilterCheckListMenuItem","isBoolean","separatorAfter","menu","defaultval","popupItems","createPopupMenuItems","PopupMenu","Data","popupWindow","getTag","getContainer","_checked","_tag","setTag","isChecked","handler","isTogglable","SEPARATOR","href","PreventDefault","innerBlock","mainBlock","isOpen","_easing","_self","easing","duration","start","finish","transition","makeEaseOut","transitions","circ","step","_step","complete","proxy","_complete","animate","offsetHeight","state","InterfaceGridFilterNavigationBar","_binding","itemSettings","InterfaceGridFilterNavigationBarItem","getBinding","_parent","_button","_hint","_buttonHandler","onButtonClick","createHint","PopupWindowManager","onHintClose","children","onDisableHint","url","binding","category","location"],"mappings":"AAAA,SAAUA,IAAsB,sBAAM,YACtC,CACCA,GAAGC,oBAAsB,WAExBC,KAAKC,eAAiB,EACtBD,MAAKE,IAAM,EACXF,MAAKG,UAAY,IACjBH,MAAKI,aACLJ,MAAKK,cACLL,MAAKM,mBAAqB,CAC1BN,MAAKO,SACLP,MAAKQ,UACLR,MAAKS,gBAAkB,IACvBT,MAAKU,gBAAkB,IACvBV,MAAKW,6BAA+B,KACpCX,MAAKY,WAAa,KAClBZ,MAAKa,eAAiB,EACtBb,MAAKc,cAAgB,EACrBd,MAAKe,WAAa,IAClBf,MAAKgB,gBAAkB,IACvBhB,MAAKiB,eAAiB,IACtBjB,MAAKkB,UAAY,KACjBlB,MAAKmB,kBACLnB,MAAKoB,4BAA8B,IACnCpB,MAAKqB,WAAa,KAGnBvB,IAAGC,oBAAoBuB,WAEtBC,WAAY,SAASC,EAAIC,GAExBzB,KAAKE,IAAMJ,GAAG4B,KAAKC,iBAAiBH,GAAMA,EAAK,EAC/CxB,MAAKG,UAAYs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